package com.my.interview.proxy.jdk_proxy;

public class JDKMainTest {

    public static void main(String[] args) {

        WaitForProxyImpl waitForProxyImpy = new WaitForProxyImpl();
        JDKProxy jdkProxy = new JDKProxy();
        jdkProxy.setTarget(waitForProxyImpy);

        WaitForProxy waitForProxy = (WaitForProxy) jdkProxy.getProxy();
        String res = waitForProxy.execute("zlx");
        System.out.println("============" + res);
    }
}
